import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity({ name: 'check' })
export class Check extends BaseEntity {

    @PrimaryGeneratedColumn({ name: 'check_id' })
    public checkId: number;

    @Column('int', { name: 'factory_num' })
    public factoryNum: number;

    @Column('varchar', { name: 'material_type', length: 255 })
    public materialType: string;

    @Column('int', { name: 'check_num' })
    public checkNum: number;

    @Column('int', { name: 'pass_rate' })
    public passRate: number;
}
